<p class="Paragraph">Text: Any constant name which follows the standard variable naming conventions.</p>
<p class="Paragraph">A constant is a type of variable which helps to improve the readability of a progam. Constants are not defined as a specific type, rather are used merely as program code placeholders. A constant may only be defined in a program once and can never be modified. Use the following statement to define a constant:</p>
<p class="Paragraph">The type of expression is irrelevant. If a program is started, <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Basic converts the program code internally so that each time a constant is used, <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>the defined expression replaces it. Basically, this is like an internal "Search & Replace" function. Wherever the constant name occurs in the Basic program code, it will be replaced by the expression. For this reason, the type assigned to the constant does not have any relevance since only the internal expression is used.</p>
<p class="P2">Example:</p>
<p class="PropText">Sub ExampleConst</p>
<p class="PropText">Const iVar = 1964</p>
<p class="PropText">Msgbox iVar</p>
<p class="PropText">Const sVar = "Program", dVar As Double = 1.00</p>